﻿#parse("partials/header.html") #parse("partials/sidebar.html")
<script type='text/javascript' src='/Scripts/JQueryValidation/jquery.validationEngine.js'></script>
<script type='text/javascript' src='/Scripts/JQueryValidation/jquery.validationEngine-en.js'></script>
<script type='text/javascript' src='/Scripts/jquery.blockUI.js'></script>
<link href="${rooturl}Styles/JQueryValidation/validationEngine.jquery.css" rel="stylesheet"
    type="text/css" />
<script>
    jQuery(document).ready(function () {
        jQuery("#actGS").validationEngine();
        jQuery("#actGS").submit(
            function () {
                if (jQuery("#actGS").valid() == true) {
                    jQuery.blockUI();
                    var post_data = jQuery(this).serialize();
                    var form_action = jQuery(this).attr("action");
                    var form_method = jQuery(this).attr("method");
                    jQuery.ajax({
                        type: form_method,
                        url: form_action,
                        cache: false,
                        dataType: "json",
                        data: post_data,
                        success: function (data) {
                            jQuery("#notif").html(data['strNotification']);
                            jQuery.unblockUI();
                        },
                        error: function (data) {
                            jQuery.unblockUI();
                        },
                        complete: function () {

                        }
                    });
                }
                return false;
            });
    });

 
</script>


  <div id="mws-container" class="clearfix">
    <div class="container">
        <form method="post" action="/master/employees/saveemployee/" class="crudGS" id="actGS">
        <input type="hidden" value="$IsCreate" name="IsCreate" id="IsCreate" />
        <input type="hidden" value="$employee.Id" name="Idem" id="Id" />
        <div class="mws-panel grid_8">
            <div class="mws-panel-header">
                <span class="mws-i-24 i-table-1">$Pagetitle</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-toolbar top clearfix">
                    <ul>
                       
                         <li><a class="mws-ic-16 ic-arrow-left" href="/master/employees/" title="Accept">Back To Employee List</a></li>
                       <li><a class="mws-ic-16 ic-add" href="/master/employees/createemployee/" title="Accept">
                            Add Employee</a></li>
                    </ul>
                </div>
                <div id="notif" >
                    $Notification
                </div>
              <div class="mws-form">
                    <div class="grid_4">
                        <div class="mws-form-inline">
                            <div class="mws-form-row">
                                <label>
                                  Employee Number <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item">
                                   <input class="required text-input, lf mws-textinput"  id="EmployeeNumber"  name="EmployeeNumber" type="text" value="$employee.EmployeeNumber"/>
                                </div>
                            </div>
                          <div class="mws-form-row">
                                <label>
                                  Superior Number <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item">
                                   <input class="required text-input, lf mws-textinput"  id="SuperiorNumber"  name="SuperiorNumber" type="text" value="$employee.SuperiorNumber"/>
                                </div>
                            </div>
                            <div class="mws-form-row">
                                <label>
                                  First Name <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item">
                                   <input class="required text-input, lf mws-textinput"  id="FirstName"  name="FirstName" type="text" value="$employee.FirstName"/>
                                </div>
                            </div>
                         <div class="mws-form-row">
                                <label>
                                  Last Name <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item">
                                   <input class="required text-input, lf mws-textinput"  id="LastName"  name="LastName" type="text" value="$employee.LastName"/>
                                </div>
                            </div>
                         
                          <div class="mws-form-row">
                                <label>
                                    Department</label>
                                <div class="mws-form-item">
                                   $ddlDepartment
                                </div>
                            </div>
                               <div class="mws-form-row">
                                <label>
                                    Location</label>
                                <div class="mws-form-item">
                                   $ddlLocation
                                </div>
                            </div>
                             <div class="mws-form-row">
                                <label>
                                 Gender <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item">
                                $ddlGender
                                </div>
                            </div>
                            <div class="mws-form-row">
                                <br />
                                <span style="color: #FF0000; font-size: large;">*</span><span style="color: #FF0000;">
                                    : Mandatory</span>
                            </div>
                       
                        </div>
                    </div>
                    <div class="clear15">
                    </div>
                    <div class="mws-button-row">
                        <input name="btnAction" class="mws-button red" type="submit" value="Save" />
                        <input class="mws-button gray" type="reset" value="Reset" />
                    </div>
                </div>
            </div>
        </div>
        <hr />
        </form>
    </div>
#parse("partials/footer.html")


>
